package com.zx.mes.upms.hyl.mapper;

import com.zx.mes.upms.hyl.entity.Role;
import tk.mybatis.mapper.common.Mapper;
import org.springframework.stereotype.Component;

/**
 * 
 * 
 * @author hyl
 * @email 632105841@qq.com
 * @date 2018-04-08 15:10:44
 */
@Component
public interface RoleMapper extends Mapper<Role> {
    /**
     * 根据角色id来获取角色的所有资源
     * @param id
     * @return role
     */
	Role getResourceByRoleId(String id);

    /**
     * 根据角色id获取角色的所有菜单
     * @param id
     * @return role
     */
    Role getMenuByRoleId(String id);

}
